// ************************************************************************ //
// The types declared in this file were generated from data read from the
// WSDL File described below:
// WSDL     : http://ekoindri.com/radphp/research/soap_sis_absensi.php?wsdl
//  >Import : http://ekoindri.com/radphp/research/soap_sis_absensi.php?wsdl>0
// Encoding : ISO-8859-1
// Version  : 1.0
// (12/31/2011 2:48:40 PM - - $Rev: 28374 $)
// ************************************************************************ //

unit soap_sis_absensi;

interface

uses InvokeRegistry, SOAPHTTPClient, Types, XSBuiltIns;

type

  // ************************************************************************ //
  // The following types, referred to in the WSDL document are not being represented
  // in this file. They are either aliases[@] of other types represented or were referred
  // to but never[!] declared in the document. The types from the latter category
  // typically map to predefined/known XML or Embarcadero types; however, they could also 
  // indicate incorrect WSDL documents that failed to declare or import a schema type.
  // ************************************************************************ //
  // !:string          - "http://www.w3.org/2001/XMLSchema"[Gbl]
  // !:integer         - "http://www.w3.org/2001/XMLSchema"[Gbl]

  TInfoServer          = class;                 { "http://localhost"[GblCplx] }
  TInfoAbsensiStatus   = class;                 { "http://localhost"[GblCplx] }



  // ************************************************************************ //
  // XML       : TInfoServer, global, <complexType>
  // Namespace : http://localhost
  // ************************************************************************ //
  TInfoServer = class(TRemotable)
  private
    Fserver_host: string;
    Fserver_database: string;
    Fserver_username: string;
    Fserver_password: string;
  published
    property server_host:     string  read Fserver_host write Fserver_host;
    property server_database: string  read Fserver_database write Fserver_database;
    property server_username: string  read Fserver_username write Fserver_username;
    property server_password: string  read Fserver_password write Fserver_password;
  end;



  // ************************************************************************ //
  // XML       : TInfoAbsensiStatus, global, <complexType>
  // Namespace : http://localhost
  // ************************************************************************ //
  TInfoAbsensiStatus = class(TRemotable)
  private
    FID: Int64;
    FABSENSI_KODE: string;
    FABSENSI_NAMA: string;
    FABSENSI_KETERANGAN: string;
  published
    property ID:                 Int64   read FID write FID;
    property ABSENSI_KODE:       string  read FABSENSI_KODE write FABSENSI_KODE;
    property ABSENSI_NAMA:       string  read FABSENSI_NAMA write FABSENSI_NAMA;
    property ABSENSI_KETERANGAN: string  read FABSENSI_KETERANGAN write FABSENSI_KETERANGAN;
  end;

  TInfoDaftarAbsensiStatus = array of TInfoAbsensiStatus;   { "http://localhost"[GblCplx] }

  // ************************************************************************ //
  // Namespace : http://localhost/
  // soapAction: http://ekoindri.com/radphp/research/soap_sis_absensi.php/%operationName%
  // transport : http://schemas.xmlsoap.org/soap/http
  // style     : rpc
  // binding   : SERVICE_ABSENSIBinding
  // service   : SERVICE_ABSENSI
  // port      : SERVICE_ABSENSIPort
  // URL       : http://ekoindri.com/radphp/research/soap_sis_absensi.php
  // ************************************************************************ //
  SERVICE_ABSENSIPortType = interface(IInvokable)
  ['{A8A93FFB-B516-07A0-0608-FBA042F572B3}']
    function  ABSENSI_SIMPAN(const connection_string: TInfoServer; const absensi: TInfoAbsensiStatus; const status: string): string; stdcall;
    function  ABSENSI_SIMPAN_DATASET(const connection_string: TInfoServer; const daftarabsensi: TInfoDaftarAbsensiStatus): string; stdcall;
    function  ABSENSI_DATA(const connection_string: TInfoServer; const row: Int64; const key_word: string; const sort_type: string): TInfoDaftarAbsensiStatus; stdcall;
    function  ABSENSI_DATA_SEMUA(const connection_string: TInfoServer; const sort_type: string): TInfoDaftarAbsensiStatus; stdcall;
    function  ABSENSI_HAPUS(const connection_string: TInfoServer; const id: Int64): string; stdcall;
  end;

function GetSERVICE_ABSENSIPortType(UseWSDL: Boolean=System.False; Addr: string=''; HTTPRIO: THTTPRIO = nil): SERVICE_ABSENSIPortType;


implementation
  uses SysUtils;

function GetSERVICE_ABSENSIPortType(UseWSDL: Boolean; Addr: string; HTTPRIO: THTTPRIO): SERVICE_ABSENSIPortType;
const
  defWSDL = 'http://ekoindri.com/radphp/research/soap_sis_absensi.php?wsdl';
  defURL  = 'http://ekoindri.com/radphp/research/soap_sis_absensi.php';
  defSvc  = 'SERVICE_ABSENSI';
  defPrt  = 'SERVICE_ABSENSIPort';
var
  RIO: THTTPRIO;
begin
  Result := nil;
  if (Addr = '') then
  begin
    if UseWSDL then
      Addr := defWSDL
    else
      Addr := defURL;
  end;
  if HTTPRIO = nil then
    RIO := THTTPRIO.Create(nil)
  else
    RIO := HTTPRIO;
  try
    Result := (RIO as SERVICE_ABSENSIPortType);
    if UseWSDL then
    begin
      RIO.WSDLLocation := Addr;
      RIO.Service := defSvc;
      RIO.Port := defPrt;
    end else
      RIO.URL := Addr;
  finally
    if (Result = nil) and (HTTPRIO = nil) then
      RIO.Free;
  end;
end;


initialization
  InvRegistry.RegisterInterface(TypeInfo(SERVICE_ABSENSIPortType), 'http://localhost/', 'ISO-8859-1');
  InvRegistry.RegisterDefaultSOAPAction(TypeInfo(SERVICE_ABSENSIPortType), 'http://ekoindri.com/radphp/research/soap_sis_absensi.php/%operationName%');
  RemClassRegistry.RegisterXSClass(TInfoServer, 'http://localhost', 'TInfoServer');
  RemClassRegistry.RegisterXSClass(TInfoAbsensiStatus, 'http://localhost', 'TInfoAbsensiStatus');
  RemClassRegistry.RegisterXSInfo(TypeInfo(TInfoDaftarAbsensiStatus), 'http://localhost', 'TInfoDaftarAbsensiStatus');

end.